package com.bsh.service;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import com.alibaba.fastjson.JSONObject;
import com.bsh.api.Exception.ApiException;
import com.bsh.utils.ApiMessage;

public interface ApiMerchantService {
	/**
	 * 申请商户
	 * @param dto
	 * @return
	 * @throws ApiException
	 */
	ApiMessage registerMerchant(JSONObject dto,@RequestParam(value = "idcardA") MultipartFile idcardA,
			@RequestParam(value = "idcardB") MultipartFile idcardB,
			@RequestParam(value = "certificate") MultipartFile certificate,
			@RequestParam(value = "imgCover") MultipartFile imgCover,
			@RequestParam(value = "showImg1", required = false) MultipartFile showImg1,
			@RequestParam(value = "showImg2", required = false) MultipartFile showImg2) throws ApiException;
	
	
	/**
	 * 申请商户url
	 * @param dto
	 * @return
	 * @throws ApiException
	 */
	ApiMessage registerMerchantForUrl(JSONObject dto) throws ApiException;
	
	
	/**
	 * 商户类型列表
	 * @param dto
	 * @return
	 * @throws ApiException
	 */
	ApiMessage merchantCategory(JSONObject dto) throws ApiException;
	/**
	 * 商户详情
	 * @param dto
	 * @return
	 * @throws ApiException
	 */
	ApiMessage merchantDetail(JSONObject dto) throws ApiException;
	/**
	 * 修改商户详情
	 * @param dto
	 * @return
	 * @throws ApiException
	 */
	ApiMessage changeMerchantDetail(JSONObject dto) throws ApiException;
	
	
	
	/**
	 * h5商户列表
	 * @param dto
	 * @return
	 * @throws ApiException
	 */
	ApiMessage H5MerchantList(JSONObject dto) throws ApiException;
	
	
	/**
	 * h5商户列表
	 * @param dto
	 * @return
	 * @throws ApiException
	 */
	ApiMessage H5MerchantHotList(JSONObject dto) throws ApiException;
	
	/**
	 * h5商户详情
	 * @param dto
	 * @return
	 * @throws ApiException
	 */
	ApiMessage H5MerchantDetail(JSONObject dto) throws ApiException;
	
	
	

}
